﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAO;
using DTO;

namespace BUS
{
    public static class MachSacBUS
    {

        //Hàm này lấy danh sách mạch sạc phù hợp với cường độ
        public static object lay_danh_sach_mach_sac(double _cd) {
            return MachSacDAO.lay_danh_sach_mach_sac(_cd);
        }

        public static List<SanPham_MachSacDTO> search_machsac(string text)
        {
            return MachSacDAO.search_machsac(text);
        }

        public static void Insert_sanpham_machsac(SanPham_MachSacDTO mSac)
        {
            MachSacDAO.Insert_sacpham_machsac(mSac);
        }

        public static void Delete_sanpham_machdsac(int id)
        {
            MachSacDAO.Delete_sanpham_machsac(id);
        }

        public static SanPham_MachSacDTO load_machsac_id(int id)
        {
            return MachSacDAO.load_machsac_id(id);
        }

        public static void Update_sanpham_machsac(SanPham_MachSacDTO mSac)
        {
            MachSacDAO.Update_sanpham_machsac(mSac);
        }







    }
}
